include('shared.lua')
 

local Rotation = 0;

function ENT:Think()
    if Rotation < 360 then
		Rotation = Rotation + 0.1
	else
		Rotation = 0
	end
	
    return true
end
 
function ENT:Draw()

	if(INV_INVASIONSPAWNVISIBLE)then
		self.BaseClass.Draw(self)

		--self:DrawModel()       -- Draw the model.
		--cam.Start3D2D( self:GetPos(), Angle(0, 0, 0), 1 )
		--surface.DrawCircle( 0, 0, 50, Color(10,120,20,60) ) 
		--cam.End3D2D()

		cam.Start3D2D( self:GetPos() + Vector(0, 0, 110) , Angle(0, Rotation, 90), 0.5 )
		draw.DrawText("Invasion Spawn", "ScoreboardText", 0, 0, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER )
		cam.End3D2D()
	
		cam.Start3D2D( self:GetPos() + Vector(0, 0, 110) , Angle(0, Rotation + 180, 90), 0.5 )
		draw.DrawText("Invasion Spawn", "ScoreboardText", 0, 0, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER )
		cam.End3D2D()
	end

end
 